﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Scheduling.Models.Interfaces;

namespace Scheduling.Models.Repos.InMemory
{
    public class InMemoryUserGroupLoader : IUserGroupLoader
    {
        public List<UserGroup> GetUserGroups()
        {
            UserGroup userGroup = new UserGroup();
            userGroup.ID = 1;
            userGroup.Name = "user";
            List<UserGroup> result = new List<UserGroup>();
            result.Add(userGroup);
            return result;
        }

        public UserGroup GetUserGroup(int ID)
        {
            if (ID == 1)
                return GetUserGroups().First();
            else
                return null;
        }
    }
}